package com.ruirenyun;

import com.ruirenyun.util.common.BeanUtil;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author
 * @version 1.0
 * @description
 * @date 2021/3/31 16:00
 */
@Slf4j
@MapperScan(basePackages = {"com.ruirenyun.mapper"})
@ComponentScan(basePackages = {"com.ruirenyun.*"})
@EnableScheduling
@EnableDiscoveryClient
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Application.class, args);
        BeanUtil.setApplicationContext(applicationContext);
        log.info("======================Application Started=====================");
    }
}
